package org.gjy.m8.stream;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-11-04 10:47:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student implements Serializable, Cloneable {

    private Integer age;
    private String name;
    private Dish dish;

    public Student(Integer age, String name) {
        this.age = age;
        this.name = name;
    }

    @Override
    public Student clone() {
        try {
            return (Student) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new AssertionError();
        }
    }
}
